﻿using NewRetail.Application.Components.Warehouse.Entity;
using NewRetail.Application.Core.Entity;
using System.Collections.Generic;
using Volo.Abp;

namespace NewRetail.Application.Components.Goods.Entity
{
    public class GoodsInfo : BaseEntityWithNo, ISoftDelete
    {
        public string goodsName { get; set; }
        public string barCode { get; set; }
        public string categoryID { get; set; }
        public int brand { get; set; }
        public string specifications { get; set; }
        public int saleType { get; set; }
        public int metering { get; set; }
        public int unit { get; set; }
        public string originPlace { get; set; }
        public int qualityTime { get; set; }
        public decimal price { get; set; }
        public string imgUrl { get; set; }
        public bool IsDeleted { get; set; }
        /// <summary>
        /// 助记词
        /// </summary>
        public string mnemonicWords { get; set; }
        /// <summary>
        /// 颜色代码
        /// </summary>
        public int colourCode { get; set; }
        /// <summary>
        /// 颜色名
        /// </summary>
        public string colourName { get; set; }
        /// <summary>
        /// 尺码类型代码
        /// </summary>
        public int sizeStCode { get; set; }
        /// <summary>
        /// 尺码类型名
        /// </summary>
        public string sizeStName { get; set; }
        /// <summary>
        /// 尺码代码
        /// </summary>
        public int sizeCode { get; set; }
        /// <summary>
        /// 尺码名
        /// </summary>
        public string sizeName { get; set; }
        /// <summary>
        /// 商品货号
        /// </summary>
        public string goodsCode { get; set; }
        /// <summary>
        /// 商品主Id
        /// </summary>
        public string goodsMstId { get; set; }
        /// <summary>
        /// 是否为新品- true为新品，false为旧品。默认true
        /// </summary>
        public bool isNewProduct { get; set; } = true;

        public ICollection<WarehouseGoods> GoodsPrices { get; set; }
        public ICollection<InOutWarehousing> InOutWarehousings { get; set; }
        #region add by cl 20221112
        public GoodsCategory GoodsCategory { get; set; }
        #endregion
    }
}
